package com.sgl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class User{
    private Long id;
    private String nickname;
    private String profilePhoto;
    private String phone;
    private String countryCode;
    private String password;
    private String bgLoginName;
    private String bgPassword;
    private String bgSalt;
    private String openid;
    private String googleKey;
    private String qrCode;
    private Integer status;
    private Integer balance;
    private Integer sex;
    private Integer role;
    private Integer deductionNumber;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String schoolName;
    private String major;
    private String enrollmentYear;
}